package com.geekstudy.week9.service;

import com.geekstudy.api.OrderApi;
import com.geekstudy.entity.Order;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

@Service("com.geekstudy.api.OrderApi")
public class OrderService implements OrderApi {


    @Override
    public Order findOrderById(int id) {
        id = 20210901;
        String name = "订单";
        float f = 12.123f;
        Order order = new Order(id, name, f);
        return order;
    }
}
